package com.sinothk.fc.bill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 招财猫账单表
 * @Author: Liangyt
 * @Date:   2022-09-12
 * @Version: V1.0
 */
@Data
@TableName("fc_bill")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="fc_bill对象", description="招财猫账单表")
public class BillClassifyEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**收入*/
    @ApiModelProperty(value = "收入")
    @TableField(exist = false)
    private Long income;
    /**支出*/
    @ApiModelProperty(value = "支出")
    @TableField(exist = false)
    private Long outcome;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**账单图标*/
	@Excel(name = "账单图标", width = 15)
    @ApiModelProperty(value = "账单图标")
    private String billLogo;
	/**账单名称*/
	@Excel(name = "账单名称", width = 15)
    @ApiModelProperty(value = "账单名称")
    private String billName;
	/**账单类别*/
	@Excel(name = "账单类别", width = 15)
    @ApiModelProperty(value = "账单类别")
    private String billType;
    /**账单状态:0待付款1已付款2已取消*/
    @Excel(name = "账单状态:0待付款1已付款2已取消", width = 15)
    @ApiModelProperty(value = "账单状态:0待付款1已付款2已取消")
    private Integer state;
	/**账单值*/
	@Excel(name = "账单值", width = 15)
    @ApiModelProperty(value = "账单值")
    private Long billValue;
    /**原账单值*/
    @Excel(name = "原账单值", width = 15)
    @ApiModelProperty(value = "原账单值")
    private Long billFlagValue;
	/**账单月份：yyyy年MM月*/
	@Excel(name = "账单月份：yyyy年MM月", width = 15)
    @ApiModelProperty(value = "账单月份：yyyy年MM月")
    private String billMonth;
    /**账单月份：yyyy年MM月dd日*/
    @Excel(name = "账单月份：yyyy年MM月dd日", width = 15)
    @ApiModelProperty(value = "账单月份：yyyy年MM月dd日")
    private String billDay;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;

    /**操作人*/
    @ApiModelProperty(value = "操作人")
    private String optBy;


    /**
     * 业务种类：物料进货，商品卖出，商品进货等
     */
    @ApiModelProperty(value = "业务种类：物料进货，商品卖出，商品进货等")
    private String bizType;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    private String orderId;
    /**
     * 订单orderDesc
     */
    @ApiModelProperty(value = "订单orderDesc")
    private String orderDesc;
    /**
     * 业务ID
     */
    @ApiModelProperty(value = "业务ID")
    private String bizId;

    /**门店ID*/
    @ApiModelProperty(value = "门店ID")
    private String storeId;
    /**账单类型：0收入1支出*/
    @Excel(name = "账单类型：0收入1支出", width = 15)
    @ApiModelProperty(value = "账单类型：0收入1支出")
    private Integer billState;
    /**
     * 来对象
     */
    private String billUserId;
    private String billUserName;
    private String billUserAvatar;
    private String billUserPhone;
}
